home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / tools / pageinst.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-01-19  |  900 b   |  43 lines

  1. /******************************************************************************
  2. *
  3. *  NSSDC/CDF                Print instructions a page at a time.
  4. *
  5. *  Version 1.0, 25-Jun-91, ST Systems (STX)
  6. *
  7. *  Modification history:
  8. *
  9. *   V1.0  25-Jun-91, J Love    Original version.
  10. *
  11. ******************************************************************************/
  12.  
  13. #include <stdio.h>
  14.  
  15. #define MAX_LINES_PER_PAGE 22
  16.  
  17. /*****************************************************************************
  18. * PageInst.
  19. *****************************************************************************/
  20.  
  21. void PageInst (text)
  22. char *text[];
  23. {
  24. int i;
  25. int count;
  26. char key;
  27.  
  28. count = 0;
  29.  
  30. for (i = 0; text[i] != NULL; i++) {
  31.    printf ("%s\n", text[i]);
  32.    count++;
  33.    if (count == MAX_LINES_PER_PAGE && text[i+1] != NULL) {
  34.      printf ("\nEnter RETURN for more...");
  35.      scanf ("%c", &key);
  36.      printf ("\n\n");
  37.      count = 0;
  38.    }
  39. }
  40.  
  41. return;
  42. }
  43.